home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club (Business) 1997 July / Software of the Month Club - Business (Volume 239) (July 1997).iso / pc / code / debug / memmon.dir / 00070.ls < prev    next >
Encoding:
Text File  |  1995-02-15  |  650 b   |  26 lines

  1. on mouseDown
  2.   global gTempo
  3.   set indicator to the clickOn
  4.   set theTop to the top of sprite (indicator - 1)
  5.   set theBottom to the bottom of sprite (indicator - 1)
  6.   repeat while the mouseDown
  7.     if the mouseV < theTop then
  8.       set the locV of sprite indicator to theTop
  9.     else
  10.       if the mouseV >= theBottom then
  11.         set the locV of sprite indicator to theBottom - 1
  12.       else
  13.         set the locV of sprite indicator to the mouseV
  14.       end if
  15.     end if
  16.     updateStage()
  17.   end repeat
  18.   set gTempo to 15 - ((the top of sprite indicator + 3 - theTop) / 3)
  19.   tell window "Memmon"
  20.     puppetTempo(gTempo)
  21.   end tell
  22. end
  23.  
  24. on mouseUp
  25. end
  26.